//
//  DCHttpRequest.h
//  Demo
//
//  Created by Kyle on 2022/12/31.
//

#import <Foundation/Foundation.h>
#import "DCHttpManager.h"
#import "DCResponseData.h"
#import "DCHttpDocument.h"

NS_ASSUME_NONNULL_BEGIN

@interface DCHttpRequest : NSObject

//获取验证码
+ (NSURLSessionDataTask *)DCgetSmsWithPhoneNum:(NSString *)phoneNum registerType:(NSString *)type completeBlock:(NSmartCompleteBlock)completeBlock;

//登陆
+ (NSURLSessionDataTask *)DCLoginWithPhoneNum:(NSString *)phone vcode:(NSString *)vcode  completeBlock:(NSmartCompleteBlock)completeBlock;

//退出登陆
+ (NSURLSessionDataTask *)DCLogoutCompleteBlock:(NSmartCompleteBlock)completeBlock;

//用户基本信息
+ (NSURLSessionDataTask *)DCBaseUserInfoCompleteBlock:(NSmartCompleteBlock)completeBlock;

//用户投诉
+ (NSURLSessionDataTask *)DCUserComplaintWithMessage:(NSString *)message completeBlock:(NSmartCompleteBlock)completeBlock;

//获取银行卡列表
+ (NSURLSessionDataTask *)DCBankCardListCompleteBlock:(NSmartCompleteBlock)completeBlock;

//修改银行卡
+ (NSURLSessionDataTask *)DCmodifyBankcard:(NSString *)bandCode step:(NSString *)step vcode:(NSString *)vcode CompleteBlock:(NSmartCompleteBlock)completeBlock;

//银行列表
+ (NSURLSessionDataTask *)DCBankListCompleteBlock:(NSmartCompleteBlock)completeBlock;

//获取客服信息
+ (NSURLSessionDataTask *)DCCustomerServiceInfoCompleteBlock:(NSmartCompleteBlock)completeBlock;

//检查用户扩展信息是否过期（true为过期，false为未过期）
+ (NSURLSessionDataTask *)DCAuthCheckExtExpiredCompleteBlock:(NSmartCompleteBlock)completeBlock;

//获取用户授权数据
+ (NSURLSessionDataTask *)DCAuthCheckCompleteBlock:(NSmartCompleteBlock)completeBlock;

//活体 照片上传
+ (NSURLSessionDataTask *)DCAuthUploadLiveImage:(NSData*)imageData CompleteBlock:(NSmartCompleteBlock)completeBlock;

///获取下一步该填写信息的step,如果信息都填写完毕，返回100，其他返回未填写的step
+ (NSURLSessionDataTask *)DCAuthNextStepCompleteBlock:(NSmartCompleteBlock)completeBlock;

//保存用户信息(词汇映射)
+ (NSURLSessionDataTask *)DCAuthSaveInfo2:(NSString *)step data:(NSString *)data completeBlock:(NSmartCompleteBlock)completeBlock;

//字典列表
+ (NSURLSessionDataTask *)DCDictListWithType:(NSString *)type complate:(NSmartCompleteBlock)completeBlock;

//上传证件正面
+ (NSURLSessionDataTask *)DCOSSUploadPositiveImage:(NSData*)imageData complate:(NSmartCompleteBlock)completeBlock;


/// 借款列表 type 1（当前订单）、2（历史订单）
+ (NSURLSessionDataTask *)DCOrderListType:(NSString *)type pageNum:(NSInteger)pageNum complate:(NSmartCompleteBlock)completeBlock;

// 订单详情
+ (NSURLSessionDataTask *)DCOrderDetialWithOrderNo:(NSString *)orderNo complate:(NSmartCompleteBlock)completeBlock;

/// 展期借款周期计算信息
/// - Parameters:
///   - orderNo: 订单编号 ,
///   - termUnit: 周期单位 1：天2：月，可为空
///   - delayTerm: 延期周期，可为空 ,
///   - completeBlock: 完成回调
+ (NSURLSessionDataTask *)DCCalculateDelayWithorderNo:(NSString *)orderNo TermUnit:(NSString *)termUnit delayTerm:(NSString *)delayTerm complate:(NSmartCompleteBlock)completeBlock;
@end

NS_ASSUME_NONNULL_END
